/**
 * Created by jianglinjie on Mon Sep 18 2017
 * @flow
 */
'use strict';

import Router from 'koa-router';
import env from './env';
import users from './users';
import captchas from './captchas';
import files from './files';
import { GlobalDefines } from '../constants';
const router = new Router({ prefix: `${GlobalDefines.API_PREFIX_URI}/v1` });

router.use('/env', env.routes(), env.allowedMethods());
router.use('/users', users.routes(), users.allowedMethods());
router.use('/captchas', captchas.routes(), captchas.allowedMethods());
router.use('/files', files.routes(), files.allowedMethods());

export default router
